package com.nervenets.web.rabbitmq;

import com.nervenets.utils.JodaUtils;

import java.io.Serializable;

public class EmailMessage implements Serializable {
    private int time = JodaUtils.getTimestamp();
    private int unionId;
    private String to;

    public EmailMessage() {
    }

    public EmailMessage(int unionId, String to) {
        this.unionId = unionId;
        this.to = to;
    }

    public int getUnionId() {
        return unionId;
    }

    public void setUnionId(int unionId) {
        this.unionId = unionId;
    }

    public String getTo() {
        return to;
    }

    public void setTo(String to) {
        this.to = to;
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }
}
